package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/adx-api/handlers"
	"wx-api/adx-api/services/se_channelslot"
)

func Route_ChannelSlot(router *gin.RouterGroup) {
	dsp_slot := router.Group("/channel_slot")
	dsp_slot.GET("/list", func(c *gin.Context) {
		se_channelslot.List(handlers.NewBaseController(c))
	})
	dsp_slot.POST("/add", func(c *gin.Context) {
		se_channelslot.Add(handlers.NewBaseController(c))
	})
	dsp_slot.POST("/edit", func(c *gin.Context) {
		se_channelslot.Edit(handlers.NewBaseController(c))
	})
	dsp_slot.POST("/edit_rate", func(c *gin.Context) {
		se_channelslot.UpdateRate(handlers.NewBaseController(c))
	})
	dsp_slot.GET("/info", func(c *gin.Context) {
		se_channelslot.Info(handlers.NewBaseController(c))
	})
	dsp_slot.GET("/flag", func(c *gin.Context) {
		se_channelslot.Flag(handlers.NewBaseController(c))
	})
	dsp_slot.GET("/stats", func(c *gin.Context) {
		se_channelslot.Stats(handlers.NewBaseController(c))
	})
	dsp_slot.GET("/all", func(c *gin.Context) {
		se_channelslot.All(handlers.NewBaseController(c))
	})
}
